package com.jone.comic_api.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 * 
 * @author Yanghu
 * @since 2017-06-13
 */
@TableName("comic_page")
public class ComicPage extends Model<ComicPage> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("chapter_id")
    private Integer chapterId;
    private String filename;
    private String fillePath;
    @TableField("page_order")
    private Integer pageOrder;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getFillePath() {
        return fillePath;
    }

    public void setFillePath(String fillePath) {
        this.fillePath = fillePath;
    }

    public Integer getPageOrder() {
        return pageOrder;
    }

    public void setPageOrder(Integer pageOrder) {
        this.pageOrder = pageOrder;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
